#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Shu Yang Wang
# Date: 2017/11/13


from django.conf.urls import url, include
from pro_cmdb import views

urlpatterns = [
    url(r'^$', views.login, name="login"),
    url(r'^logout/',views.logout, name="logout"),
    url(r'^index/', views.index, name="index"),
    url(r'^hosts/',views.hosts, name="hosts"),
    url(r'^addhost/', views.addhost, name="addhost"),
    url(r'^delhost/', views.delhost, name="delhost"),
    url(r'^edithost/(?P<hid>[0-9]+)', views.edithost, name="edithost"),
    url(r'^edithost/', views.edithost, name="edithost"),
]